Page({
    data: {
        withdrawal_sum: null,
        name: '',
        wx_number: ''
    },
    toWithrawal() {
        if (!this.data.withdrawal_sum || this.data.withdrawal_sum <= 0) {
            return wx.showToast({
                title: '提现金额不能为0',
                icon: 'none'
            })
        }
        if (!this.data.name) {
            return wx.showToast({
                title: '请填写姓名',
                icon: 'none'
            })
        }
        if (!this.data.wx_number) {
            return wx.showToast({
                title: '请填写微信号',
                icon: 'none'
            })
        }
        wx.navigateTo({
            url: '/pages/store_withdrawalRecord/record',
        })
    }
})